package com.zxstudio.hateoas.demo.order.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.annotation.sql.DataSourceDefinition;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Data
@Table(name="T_ORDER")
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class OrderEntity extends BaseEntity{
    /**
     * 用戶名
     */
    private String user;
    /**
     * 股票名稱
     */
    private String stockName;
    /**
     * 成交數量
     */
    private Integer volume;

    /**
     * 成交價格
     */
    private Double price;


}
